package com.zut.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zut.mapper.UserMapper;
import com.zut.pojo.User;
import com.zut.service.UserService;

@Service("userService") 
public class UserServiceImpl implements UserService{
	//调用数据层mapper
	@Autowired
	private UserMapper userMapper;

	@Override
	public List<User> findUserOrdersByUsername(String username) {
		return userMapper.findUserOrdersByUsername(username);
	}

	@Override
	public List<User> findItemsByUsername(String username) {
		// TODO Auto-generated method stub
		return userMapper.findItemsByUsername(username);
	}

	
}
